#include "Thread.hpp"
#include "ThreadPool.hpp"
#include <memory>


using namespace yss;

int main()
{
    //unique_ptr<ThreadPool<int>> tp(new ThreadPool<int>());//写法1
    unique_ptr<ThreadPool<int>> tp = make_unique<ThreadPool<int>>();//写法2
    
    tp->InitThreadPool();
    tp->Start();
    sleep(5);
    tp->Stop();
    tp->Wait();

    return 0;
}